package com.lg.jvm;

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;

/**
 * 线程上下文类加载器 本质上还是应用类加载器
 *
 * @author Gang.Li
 * @date 2021/6/4 11:25
 */
public class CurrentThreadLoader {
    public static void main(String[] args) throws Exception {
        //final Class<Driver> driver = (Class<Driver>) Class.forName("com.mysql.cj.jdbc.Driver");
        //conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test_demo?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC", "root", "root");
        // 直接查看 mysql JDBC 源码
    }
}
